package com.vteba.utils.id;

import java.util.concurrent.atomic.AtomicInteger;

public class IntIncrement {
	private static volatile AtomicInteger INTEGER = new AtomicInteger(1);
	
	private IntIncrement() {
	}

	public static int getAndInc() {
		return INTEGER.getAndIncrement();
	}
	
	public static int getAndDec() {
		return INTEGER.getAndDecrement();
	}
	
	public static void reset(int v) {
		INTEGER.set(v);
	}
}
